/**
 * 神州信息(2012)
 */
package net.abbp.lotter.ssq.data;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 
 * 
 * @version 1.0
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ABBP 1.0
 * 
 *        Date：2012-2-22
 */
public class Reader {
	public List<Item> readData() {
		try {
			List<Item> ret = new ArrayList<Item>();
			Scanner data = new Scanner(new File("data/ssq.dat"));

			while (data.hasNext()) {
				ret.add(new Item(data.next()));
			}

			return ret;
		} catch (FileNotFoundException e) {
			throw new RuntimeException(e);
		}
	}
}
